<template>
  <div>
    <h1>组件1</h1>
    <p>{{ text }}</p>
    <p>{{ num }} - {{ typeof num }}</p>
    <p>{{ obj.a }} - {{ obj.b }}</p>
    <p v-for="(item, index) in list" :key="index">{{ item }}</p>
  </div>
</template>

<script>
export default {
  name: "component1",
  props: ["text", "num", "obj", "list"]
};
</script>
